require 'httparrty'

class RestApi
  attr_reader :user_session
  include HTTParty

  base_uri 'localhost:8080/swimpool/'

  ## AccountResource

  #@PUT
  #@Path("/password")
  def reset_password email
    put("/password", :query => {:email => email})
  end

  #@PUT
  #@Path("/account")
  def reset_account email
    put("/account", :query => {:email => email})
  end

  ## AdministrationResource
  #@PUT
  #@Path("/admins/{id}")
  def promote_user account_id
    put("/admins/#{account_id}")
  end

  ## FeedbackResource

  #@GET
  #@Path("/self/feedbacks")
  def my_feedbacks

  end

  #@GET
  #@Path("/users/{id}/feedbacks")
  def user_feedbacks user_id

  end

  ## FriendshipResource

  #@POST
  #@Path("/users/{id}/skills/{sid}/feedbacks")
  def create_new_feedback(user_id, skill_id)

  end

  #@GET
  #@Path("/users/{id}/friends")
  def list_friend user_id

  end

  #@GET
  #@Path("/self/requests")
  def friendship_requests

  end

  #@PUT
  #@Path("/users/{id}/requests")
  def send_friendship_request user_id

  end

  #@DELETE
  #@Path("/self/requests/{id}")
  def process_friendhip_request(user_id, accepted = true)

  end

  #@DELETE
  #@Path("/self/friends/{id}")
  def delete_friendship user_id

  end

  ## LookupResource
  #@GET
  #@Path("/users")
  def users_list(name = "", start = 0, stop = 20)

  end

  #@GET
  #@Path("/help")
  def help(skills = [], rating = "OneStar", friends = false, start = 0, stop = 20)

  end

  ## MessageResource

  #@GET
  #@Path("/self/messages")
  def my_messages

  end

  #@POST
  #@Path("/users/{id}/messages")
  def send_message message_string

  end

  ## ProfileResource

  #@GET
  #@Path("/self")
  def my_profile

  end

  #@GET
  #@Path("/users/{id}")
  def profile user_id

  end

  #@GET
  #@Path("/users/{id}/avatar")
  def avatar user_id

  end

  #@PUT
  #@Path("/self")
  def edit_profile new_profile_hash

  end

  #@PUT
  #@Path("/self/avatar")
  def edit_avatar avatar_url

  end

  ## SessionResource

  #@GET
  #@Path("/logout")
  def logout

  end

  #@POST
  #@Path("/login")
  def login(email, password = "password")

  end

  #@POST
  #@Path("/users")
  def register(email, password = "password")

  end

  #@PUT
  #@Path("/accounts/{id}")
  def su_activate_account user_id

  end

  #@GET
  #@Path("/activate/{hash}")
  def activate_account activation_hash
  end











end